package com.sanley.piss.model.po;

import com.sanley.piss.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @author 张凯大天才
 */
@ToString
@EqualsAndHashCode
@Data
@ApiModel(value = "工作经历表",description = "工作经历表说明")
public class WorkExperience extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -4770096336319206968L;

    @ApiModelProperty(value = "员工ID",hidden = true)
    private Integer employeeId;

    @ApiModelProperty(value = "公司名称")
    @NotBlank(message = "公司名称不能为空")
    private String company;

    @ApiModelProperty(value = "部门")
    @NotBlank(message = "部门不能为空")
    private String dept;

    @ApiModelProperty(value = "职位")
    @NotBlank(message = "职位不能为空")
    private String title;

    @ApiModelProperty(value = "岗位")
    @NotBlank(message = "岗位不能为空")
    private String post;

    @ApiModelProperty(value = "入职时间")
    @NotNull(message = "入职时间不能为空")
    private Date hiredate;

    @ApiModelProperty(value = "岗位描述")
    @NotBlank(message = "岗位描述不能为空")
    private String jobDescription;

}